package com.xiaoyang.forum.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoyang.forum.domain.pojo.Article;
import com.xiaoyang.forum.domain.vo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author XiaoYang
 * @since 2025-08-14
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleListVO> selectAll(Integer pageNum, Integer pageSize);

    List<ArticleListVO> selectByBoardId(Integer pageNum, Integer pageSize, Long boardId);

    ArticleUserVO selectDetailById(Long id);

    List<ArticleRelatedVO> getUserChoiceness(Long userId);

    List<ArticleUserLikeListVO> getUserThumbsUpList(Long userId);

    List<ArticleVO> selectArticleList();
}
